package micgord.server

class UserIntegrationTests extends GroovyTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testUser() {
        def user = new User(userName: "userName", email: "email@email.com", created: new Date(), isActive: true)
        assertNotNull user.save()
        assertNotNull user.id

        def foundUser = User.get(user.id)
        assertEquals 'userName', foundUser.userName
    }
}
